package com.ybk.zs.service.impl;

import com.ybk.zs.dao.CostGoodsMapper;
import com.ybk.zs.domain.CostGoods;
import com.ybk.zs.domain.CostGoodsExample;
import com.ybk.zs.service.ICostGoodsService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/9/6.
 */
@Service
public class CostGoodsService implements ICostGoodsService{

    @Autowired(required = false)
    CostGoodsMapper costGoodsMapper;

    @Override
    public int countByExample(CostGoodsExample example) {
        return this.costGoodsMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(CostGoodsExample example) {
        return this.costGoodsMapper.deleteByExample(example);
    }

    @Override
    public int insert(CostGoods record) {
        return this.costGoodsMapper.insert(record);
    }

    @Override
    public int insertSelective(CostGoods record) {
        return this.costGoodsMapper.insertSelective(record);
    }

    @Override
    public List<CostGoods> selectByExample(CostGoodsExample example) {
        return this.costGoodsMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(@Param("record") CostGoods record, @Param("example") CostGoodsExample example) {
        return this.costGoodsMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(@Param("record") CostGoods record, @Param("example") CostGoodsExample example) {
        return this.costGoodsMapper.updateByExample(record,example);
    }
}
